<template>
  <view class="container">
    <view class="title">图文下单系统</view>

    <button type="primary" class="btn" @click="goToOrder">去下单</button>
    <button type="default" class="btn" @click="goToCart">查看购物车</button>
  </view>
</template>

<script setup>
const goToOrder = () => {
  uni.navigateTo({ url: '/pages/order/order' })
}

const goToCart = () => {
  uni.navigateTo({ url: '/pages/cart/cart' })
}
</script>

<style scoped>
.container {
  padding: 80rpx 30rpx;
  text-align: center;
}
.title {
  font-size: 48rpx;
  font-weight: bold;
  margin-bottom: 100rpx;
}
.btn {
  margin: 30rpx 0;
  font-size: 32rpx;
  border-radius: 20rpx;
}
</style>